<?php $this->extend('comm/page');?>

<form class="layui-form form-horizontal" action="<?php echo $container->url->build('', ['idx' => $data['id']]); ?>" method="post">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">用户名:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" value="<?php echo $data['username']; ?>" readonly class="layui-input">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">过期时间:</label>
        <div class="col-xs-12 col-sm-8">
            <input type="test" name="deadline" placeholder="不填则表示不过期" class="layui-input date" value="<?php echo $data['deadline'] ? date('Y-m-d', $data['deadline']) : '';?>">
        </div>
    </div>
    <div class="layui-form-item hidden layer-footer">
        <div class="col-xs-12 text-right">
            <button type="submit" class="btn btn-success" lay-submit lay-filter="submit">确认提交</button>
            <button type="reset" class="btn btn-default">重置</button>
        </div>
    </div>
</form>